/**
* 关于我们
*/
import React, { Component } from 'react';
import { View, StyleSheet, Text, Image } from "react-native";
import { connect } from 'react-redux';
import { Colors, ImageRes } from '../../utils/Assets';
import { ProgressView } from '../custom/index'
import {getVersion} from 'react-native-device-info';
class PersonalAboutUsView extends Component {

    constructor(props) {
        super(props);
        this.state = {
            loading: false
        }
    }

    componentDidMount() {

    }
    componentWillUnmount() {
    }
    render() {
        return (
            <View style={styles.container}>
                <Image style={{ width: 80, height: 80, alignSelf: 'center', marginTop: 80 }} source={ImageRes.personal_icon}></Image>
                <View style={{ marginTop: 80, backgroundColor: "#ffffff" }}>
                    <View style={{ flexDirection: 'row', justifyContent: 'space-between', backgroundColor: Colors.white_color, paddingVertical: 20, paddingHorizontal: 15 }} >
                        <Text style={{ fontSize: 16, color: Colors.textCommonBlack }}>当前版本</Text>
                        <Text style={{ fontSize: 16, color: Colors.textCommonBlack }}>{getVersion()}</Text>
                    </View>
                    <View style={{ backgroundColor: Colors.bg_color, height: 1 }}></View>
                    <View style={{ flexDirection: 'row', justifyContent: 'space-between', backgroundColor: Colors.white_color, paddingVertical: 20, paddingHorizontal: 15 }} >
                        <Text style={{ fontSize: 16, color: Colors.textCommonBlack }}>新版本更新</Text>
                        <Text style={{ fontSize: 16, color: Colors.textCommonBlack }}>无新版</Text>
                    </View>
                </View>
                <ProgressView show={this.state.loading} />
            </View >
        )
    }
}
const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: Colors.bg_color,
    }
});
const ExportView = connect()(PersonalAboutUsView);
module.exports.PersonalAboutUsView = ExportView
